<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
pageContext.setAttribute("basePath",basePath);
%>
<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="UTF-8">
		<title>问题详情</title>

		<link rel="stylesheet" type="text/css" href="${basePath}resources/bootstrap/css/bootstrap-responsive.css">
		<link rel="stylesheet" type="text/css" href="${basePath}resources/bootstrap/css/bootstrap.css">
		<link rel="stylesheet" type="text/css" href="${basePath}resources/css/basic.css">
		<link rel="stylesheet" type="text/css" href="${basePath}resources/css/login.css">

		<script type="text/javascript" src="${basePath}resources/js/common/base.js"></script>
		<script type="text/javascript" src="${basePath}resources/js/common/jquery-3.2.1.min.js"></script>
		<script type="text/javascript" src="${basePath}resources/bootstrap/js/bootstrap.js"></script>
		<script type="text/javascript" src="${basePath}resources/angular-1.3.0/angular.min.js"></script>
		<script type="text/javascript" src="${basePath}resources/js/common/jquery-3.2.1.min.js"></script>
		<script type="text/javascript" src="${basePath}resources/js/update_selfinfo.js"></script>
	</head>
	<body ng-app="myApp" ng-controller="updateSelfInfoController">
		<div id="header">
			<%@ include file="common/header.jsp" %>
		</div>
		<div id="container">
			<div>
				<table class="table">
					<h2><caption>问题详情页</caption></h2>
					<tbody>
						<tr>
							<td>问题内容</td>
							<td>${question.questionContent}</td>
						</tr>
						<tr>
							<td>问题描述</td>
							<td>${question.questionDesc}</td>
						</tr>
						<tr>
							<td>问题图片</td>
							<c:if test="${question.imgUrl != null}">
								<td><img style="height: 80px; width:80px;" src="${question.imgUrl}" alt="题目图片"></td>
							</c:if>
						</tr>
						<tr>
							<td>选项A</td>
							<td>${question.selectionA}</td>
						</tr>
						<tr>
							<td>选项B</td>
							<td>${question.selectionB}</td>
						</tr>
						<tr>
							<td>选项C</td>
							<td>${question.selectionC}</td>
						</tr>
						<tr>
							<td>选项D</td>
							<td>${question.selectionD}</td>
						</tr>
						<tr>
							<td>答案</td>
							<td>${question.questionAnswer}</td>
						</tr>
						<tr>
							<td>答案分析</td>
							<td>${question.questionAnswerAnalysis}</td>
						</tr>
						<tr>
							<td>类型</td>
							<c:if test="${question.questionType == 1}">
								<td>单选题</td>
							</c:if>
							<c:if test="${question.questionType == 2}">
								<td>多选题</td>
							</c:if>
							<c:if test="${question.questionType == 3}">
								<td>判断题</td>
							</c:if>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		<div id="footer">
			<%@ include file="common/footer.jsp" %>
		</div>
	</body>
</html>